package com.mongo.aggregation.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


/**
 * @Description  
 * @Author  MichaelZ
 * @Date 2021-11-11 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@FieldNameConstants
@TypeAlias(value = "ventory")
@Document(value = "ventory")
public class VentoryEntity implements Serializable {

	private static final long serialVersionUID =  3743284904986410191L;

	@Id
	private Long id;

	private LocalDateTime date;

	private Double price;

	private String item;

	private Double quantity;

	private List<String> sizes;

}
